WP_SMS\Helper B

Total Complexity 79
Dependencies 9
Dependents 50
Total lines 600
Lines of code 325
Logical lines of code 163
Comment lines 158
Methods 30
Properties 0

Methods 30

Method Rating Maintainability Complexity Lines of code
getWooCommerceCustomerNumberByOrderId()
A
54 8 20
getUsersMobileNumberCountsWithRoleDetails()
S
47 6 39
getWooCommerceCustomersNumbers()
S
45 5 42
getUsersMobileNumbers()
S
51 5 28
checkMobileNumberValidity()
S
57 5 17
getWooCommerceCheckoutMobileField()
S
58 5 16
prepareMobileNumberQuery()
S
57 4 16
prepareMobileNumber()
S
65 5 8
loadTemplate()
S
61 3 13
getUserByPhoneNumber()
S
63 3 10
normalizeNumber()
S
65 3 8
maybeStartSession()
S
72 3 5
notice()
S
61 2 13
isWooCheckoutBlock()
S
72 2 5
getWooCommerceCheckoutSubmitBtn()
S
70 2 7
getWooCommerceCheckoutFieldName()
S
69 2 6
getListOfRoles()
S
64 2 10
flashNotice()
S
64 2 10
removeDuplicateNumbers()
S
70 1 6
removeNumbersPrefix()
S
68 1 6
sendMail()
S
69 1 6
getPluginAssetUrl()
S
78 1 3
makeUrlsShorter()
S
70 1 6
sanitizeMobileNumber()
S
78 1 3
getCurrentAdminPageUrl()
S
73 1 4
isJson()
S
75 1 4
getAssetPath()
S
78 1 3
getUserMobileNumberByUserId()
S
74 1 4
getUserMobileFieldName()
S
75 1 4
convertNumber()
S
73 1 3